package com.sf.dlb.jpa.model;

import javax.persistence.*;
import java.util.Date;

/**
 * 用户消息状态表 Entity
 *
 * Created by jing.tan on 2018/12/10.
 */
@Entity
@Table(name = "user_message_state")
public class UserMessageStateInfo{
	/*
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `user_id` varchar(64) DEFAULT NULL COMMENT '用户ID',
  `message_id` varchar(64) DEFAULT NULL COMMENT '消息id',
  `state` char(1) DEFAULT '1' COMMENT '状态(0已读，1未读)',
  `create_date` datetime NOT NULL COMMENT '创建时间',
	 */
	
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;
	private String userId;	// 用户ID
	private String messageId; // 消息id
	private String state;	//状态(0已读，1未读)
	private Date createDate;   //创建时间

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getMessageId() {
		return messageId;
	}

	public void setMessageId(String messageId) {
		this.messageId = messageId;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
}